try:
    num1 = input('Please add your favourite number:')
    sum = 0
    num = int(num1)
    for i in range(0,num+1):
       sum+=i
    print(sum)
except(ValueError):
    print('You have a mistake')  


  
    